#ifndef foodlistpanel_h
#define foodlistpanel_h

#include "juce_amalgamated.h"
#include "ListPanel.h"
#include "FoodView.h"
#include "../FoodObjects/Food.h"

class FoodListPanel: public ListPanel
{
private:
	FoodView* foodView;

	Image* fatIcon;
	Image* carbIcon;
	Image* proteinIcon;
	Image* fibreIcon;

public:
	FoodListPanel(MasterComponent* master, int w, int h);
	~FoodListPanel();
	void paint(Graphics& g);
	void mouseDown(const MouseEvent& e);
	void switchPanels(int, int);
	void showItemView(int row);
	deque<Eatable>& getEatableList();
	bool keyPressed(const KeyPress& k);
	void doubleClicked(const MouseEvent& e);
};

#endif
